﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class WeiActivityWinInfoConfig : EntityTypeConfiguration<WeiActivityWinInfo>
    {
        public WeiActivityWinInfoConfig()
        {
            ToTable("Himall_WeiActivityWinInfo");
            Property(item => item.AwardName).HasColumnType("varchar").HasMaxLength(200);
         
            HasRequired(x => x.Himall_WeiActivityInfo).WithMany(x => x.Himall_WeiActivityWinInfo).HasForeignKey(x => x.ActivityId);
        }
    }
}
